Optimal. Leaf size=44 \[ -\frac {(a-b) \cosh (c+d x)}{d}+\frac {a \cosh ^3(c+d x)}{3 d}+\frac {b \text {sech}(c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {4218, 459}
\begin {gather*} -\frac {(a-b) \cosh (c+d x)}{d}+\frac {a \cosh ^3(c+d x)}{3 d}+\frac {b \text {sech}(c+d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 459
Rule 4218
Rubi steps
\begin {align*} \int \left (a+b \text {sech}^2(c+d x)\right ) \sinh ^3(c+d x) \, dx &=-\frac {\text {Subst}\left (\int \frac {\left (1-x^2\right ) \left (b+a x^2\right )}{x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {\text {Subst}\left (\int \left (a \left (1-\frac {b}{a}\right )+\frac {b}{x^2}-a x^2\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {(a-b) \cosh (c+d x)}{d}+\frac {a \cosh ^3(c+d x)}{3 d}+\frac {b \text {sech}(c+d x)}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 53, normalized size = 1.20 \begin {gather*} -\frac {3 a \cosh (c+d x)}{4 d}+\frac {b \cosh (c+d x)}{d}+\frac {a \cosh (3 (c+d x))}{12 d}+\frac {b \text {sech}(c+d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(110\) vs.
\(2(42)=84\).
time = 1.38, size = 111, normalized size = 2.52
method | result | size |
risch | \(\frac {a \,{\mathrm e}^{3 d x +3 c}}{24 d}-\frac {3 a \,{\mathrm e}^{d x +c}}{8 d}+\frac {b \,{\mathrm e}^{d x +c}}{2 d}-\frac {3 \,{\mathrm e}^{-d x -c} a}{8 d}+\frac {{\mathrm e}^{-d x -c} b}{2 d}+\frac {a \,{\mathrm e}^{-3 d x -3 c}}{24 d}+\frac {2 b \,{\mathrm e}^{d x +c}}{d \left (1+{\mathrm e}^{2 d x +2 c}\right )}\) | \(111\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 111 vs.
\(2 (42) = 84\).
time = 0.29, size = 111, normalized size = 2.52 \begin {gather*} \frac {1}{24} \, a {\left (\frac {e^{\left (3 \, d x + 3 \, c\right )}}{d} - \frac {9 \, e^{\left (d x + c\right )}}{d} - \frac {9 \, e^{\left (-d x - c\right )}}{d} + \frac {e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} + \frac {1}{2} \, b {\left (\frac {e^{\left (-d x - c\right )}}{d} + \frac {5 \, e^{\left (-2 \, d x - 2 \, c\right )} + 1}{d {\left (e^{\left (-d x - c\right )} + e^{\left (-3 \, d x - 3 \, c\right )}\right )}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 85 vs.
\(2 (42) = 84\).
time = 0.45, size = 85, normalized size = 1.93 \begin {gather*} \frac {a \cosh \left (d x + c\right )^{4} + a \sinh \left (d x + c\right )^{4} - 4 \, {\left (2 \, a - 3 \, b\right )} \cosh \left (d x + c\right )^{2} + 2 \, {\left (3 \, a \cosh \left (d x + c\right )^{2} - 4 \, a + 6 \, b\right )} \sinh \left (d x + c\right )^{2} - 9 \, a + 36 \, b}{24 \, d \cosh \left (d x + c\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \operatorname {sech}^{2}{\left (c + d x \right )}\right ) \sinh ^{3}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 85 vs.
\(2 (42) = 84\).
time = 0.40, size = 85, normalized size = 1.93 \begin {gather*} \frac {a {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{3} - 12 \, a {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} + 12 \, b {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} + \frac {48 \, b}{e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}}}{24 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.18, size = 44, normalized size = 1.00 \begin {gather*} \frac {a\,{\mathrm {cosh}\left (c+d\,x\right )}^3}{3\,d}-\frac {\mathrm {cosh}\left (c+d\,x\right )\,\left (a-b\right )}{d}+\frac {b}{d\,\mathrm {cosh}\left (c+d\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________